10% ivan-gospodinow-cache

Code Review | Ivan Gospodinow Cache

WordPress plugin Ivan Gospodinow Cache scored10%from 54 tests.

About plugin

  • Plugin page: ivan-gospodinow-c...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Mar 7, 2013
  • Latest release: Apr 20, 2013
  • Number of updates: 4
  • Update frequency: every 11.2 days
  • Top authors: Gospodinow (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,374 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/ivan-gospodinow-cache/ivangospodinow-cache.php+121
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.57ms] Passed 4 tests

Analyzing server-side resources used by Ivan Gospodinow Cache
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.04 ▼0.83
Dashboard /wp-admin3.31 ▲0.0047.77 ▼4.15
Posts /wp-admin/edit.php3.36 ▲0.0053.87 ▲3.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.83 ▼15.59
Media Library /wp-admin/upload.php3.23 ▲0.0034.65 ▼1.69

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Ivan Gospodinow Cache
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.80 ▲0.241.79 ▼0.0239.13 ▼3.06
Dashboard /wp-admin2,209 ▲214.88 ▲0.01111.20 ▲9.3538.91 ▼4.25
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0239.51 ▲3.6136.25 ▲2.84
Add New Post /wp-admin/post-new.php1,533 ▼023.31 ▲0.01641.69 ▼45.6654.01 ▲6.53
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0394.17 ▼3.0641.53 ▼6.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/ivan-gospodinow-cache/ivangospodinow-cache.php on line 121
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ivan-gospodinow-cache/ivangospodinow-cacher.php on line 9
    • > PHP Notice
      Undefined index: script_runs in wp-content/plugins/ivan-gospodinow-cache/ivangospodinow-cacher.php on line 25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
2 plugin tags: speed up, cache

ivan-gospodinow-cache/ivangospodinow-cache.php 85% from 13 tests

The entry point to "Ivan Gospodinow Cache" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: The plugin description must be longer than 10 characters (currently 0 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ivan-gospodinow-cache.php" instead of "ivangospodinow-cache.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected387 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP66821376
XML10011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity15.50
▷ Minimum class complexity4.00
▷ Maximum class complexity27.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods330.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected