84% appcachify

Code Review | Appcachify

WordPress plugin Appcachify scored84%from 54 tests.

About plugin

  • Plugin page: appcachify
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 24, 2014
  • Latest release: Jul 24, 2014
  • Number of updates: 2
  • Update frequency: every 4.5 days
  • Top authors: sanchothefat (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,289 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.15ms] Passed 4 tests

Analyzing server-side resources used by Appcachify
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.94 ▼8.36
Dashboard /wp-admin3.31 ▲0.0143.74 ▼2.50
Posts /wp-admin/edit.php3.36 ▲0.0143.38 ▼8.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0199.54 ▼12.78
Media Library /wp-admin/upload.php3.23 ▲0.0133.64 ▼6.45

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Appcachify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.88 ▼0.482.40 ▲0.3548.55 ▼0.88
Dashboard /wp-admin2,206 ▲214.85 ▼1.01104.89 ▼33.5537.81 ▼13.10
Posts /wp-admin/edit.php2,092 ▼01.97 ▼0.0240.59 ▼7.0139.71 ▼4.30
Add New Post /wp-admin/post-new.php1,514 ▼617.43 ▼3.86725.97 ▼123.8655.10 ▼17.37
Media Library /wp-admin/upload.php1,385 ▼34.21 ▼0.05104.52 ▼9.4843.72 ▼20.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appcachify/appcachify.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
4 plugin tags: performance, html5, appcache, caching

appcachify/appcachify.php Passed 13 tests

The principal PHP file in "Appcachify" v. 0.1 is loaded by WordPress automatically on each request
132 characters long description:
Creates an appcache manifest for your static theme files. If your theme has a 307.php temaplte it is used when visitors are offline.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected277 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP188130209
Markdown130068

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin