84% timber-with-jetpack-photon

Code Review | Timber with Jetpack Photon

WordPress plugin Timber with Jetpack Photon scored84%from 54 tests.

About plugin

  • Plugin page: timber-with-jetpa...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9
  • WordPress version: 6.3.1
  • First release: May 9, 2014
  • Latest release: Nov 1, 2015
  • Number of updates: 8
  • Update frequency: every 67.8 days
  • Top authors: slimndap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,031 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.58ms] Passed 4 tests

Server-side resources used by Timber with Jetpack Photon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.77 ▼2.25
Dashboard /wp-admin3.32 ▲0.0248.06 ▼6.55
Posts /wp-admin/edit.php3.37 ▲0.0252.34 ▼0.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.57 ▼13.31
Media Library /wp-admin/upload.php3.25 ▲0.0236.39 ▲0.41

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Timber with Jetpack Photon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.69 ▼0.701.70 ▼0.0543.88 ▲1.64
Dashboard /wp-admin2,210 ▲196.02 ▲1.12102.29 ▼13.4239.04 ▼8.91
Posts /wp-admin/edit.php2,098 ▲91.98 ▼0.0140.97 ▲6.8535.64 ▲1.55
Add New Post /wp-admin/post-new.php1,540 ▲1022.99 ▲4.72620.88 ▼36.7160.90 ▲12.25
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.01104.98 ▲4.9344.69 ▼4.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/timber-with-jetpack-photon/TimberPhoton.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: photon, twig, cdn, jetpack, images...

timber-with-jetpack-photon/TimberPhoton.php 85% from 13 tests

The entry point to "Timber with Jetpack Photon" version 0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 149 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("timber-with-jetpack-photon.php" instead of "TimberPhoton.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin92 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1365992

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin