84% storipress

Code Review | Storipress

WordPress plugin Storipress scored84%from 54 tests.

About plugin

  • Plugin page: storipress
  • Plugin version: 0.0.12
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 16, 2021
  • Latest release: Nov 19, 2023
  • Number of updates: 20
  • Update frequency: every 36.7 days
  • Top authors: spkevin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /938 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲0.65ms] Passed 4 tests

Server-side resources used by Storipress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.31 ▲2.81
Dashboard /wp-admin3.39 ▲0.0947.02 ▼2.67
Posts /wp-admin/edit.php3.51 ▲0.1545.17 ▲1.94
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.65 ▲2.36
Media Library /wp-admin/upload.php3.32 ▲0.0833.43 ▲0.97
Export to Storipress /wp-admin/export.php?type=storipress&sp_nonce=348ffa56f83.4236.91
Connect to Storipress /wp-admin/tools.php?page=connect_to_storipress3.3640.53

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Storipress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3614.22 ▼0.061.78 ▼0.1143.24 ▼2.69
Dashboard /wp-admin2,200 ▲205.55 ▼0.0782.24 ▼15.0737.39 ▼2.71
Posts /wp-admin/edit.php2,108 ▲52.01 ▲0.0339.14 ▲1.9736.59 ▲4.34
Add New Post /wp-admin/post-new.php1,532 ▲622.98 ▼0.69577.29 ▼92.1652.29 ▼4.29
Media Library /wp-admin/upload.php1,408 ▲144.17 ▼0.0295.70 ▼5.1141.78 ▼3.19
Export to Storipress /wp-admin/export.php?type=storipress&sp_nonce=348ffa56f81,1841.6727.2228.84
Connect to Storipress /wp-admin/tools.php?page=connect_to_storipress8201.9624.7336.38

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 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • storipress
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Storipress\\Storipress\\Errors\\Exception' not found in wp-content/plugins/storipress/src/errors/class-invalid-payload-exception.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Storipress\\Storipress\\Triggers\\Trigger' not found in wp-content/plugins/storipress/src/triggers/class-disconnect.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Storipress\\Storipress\\Errors\\Exception' not found in wp-content/plugins/storipress/src/errors/class-internal-error-exception.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Storipress\\Storipress\\Triggers\\Trigger' not found in wp-content/plugins/storipress/src/triggers/class-connect.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/storipress/templates/page.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Storipress' not found in wp-content/plugins/storipress/templates/menu/home.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

storipress/storipress.php Passed 13 tests

The entry point to "Storipress" version 0.0.12 is a PHP file that has certain tags in its header comment area
53 characters long description:
Experience the full power of Storipress on WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin662 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP14216541633
HTML13029

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity6.18
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes11
▷ Abstract classes327.27%
▷ Concrete classes872.73%
▷ Final classes8100.00%
Methods47
▷ Static methods12.13%
▷ Public methods3676.60%
▷ Protected methods1123.40%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png25.85KB8.53KB▼ 67.01%
assets/banner-1544x500.png5.27KB2.33KB▼ 55.78%