78% picowall

Code Review | picowall

WordPress plugin picowall scored78%from 54 tests.

About plugin

  • Plugin page: picowall
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2016
  • Latest release: Jun 5, 2016
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: mhazami (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,037 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by picowall
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1135.30 ▼4.81
Dashboard /wp-admin3.40 ▲0.0648.84 ▼13.77
Posts /wp-admin/edit.php3.52 ▲0.1650.93 ▲1.88
Add New Post /wp-admin/post-new.php5.99 ▲0.1095.38 ▼8.07
Media Library /wp-admin/upload.php3.32 ▲0.1037.22 ▲0.92

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

picowall: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.36 ▲0.101.54 ▼0.0538.39 ▼2.03
Dashboard /wp-admin2,189 ▲155.56 ▼0.1191.30 ▲5.4142.61 ▲0.93
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0038.72 ▲5.0336.53 ▲0.11
Add New Post /wp-admin/post-new.php6,244 ▲4,71819.23 ▼3.97945.33 ▲260.8558.31 ▼0.27
Media Library /wp-admin/upload.php1,400 ▼34.20 ▲0.00105.22 ▲9.9246.13 ▲5.92

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/picowall/public/partials/picowall-output-view.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/picowall/admin/partials/picowall-metabox-view.php:16
    • > PHP Notice
      Undefined variable: content_type in wp-content/plugins/picowall/public/partials/picowall-output-view.php on line 17
    • > PHP Notice
      Undefined variable: name in wp-content/plugins/picowall/public/partials/picowall-output-view.php on line 16
    • > PHP Notice
      Undefined variable: source in wp-content/plugins/picowall/public/partials/picowall-output-view.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/picowall/public/picowall-public-functions.php:126

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === picowall === )
  • Screenshots: Screenshot #1 (Meta Box) image required
The official readme.txt is a good inspiration

picowall/picowall.php Passed 13 tests

The main PHP file in "picowall" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
25 characters long description:
Resize images on the fly.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin682 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP14236505647
PO File18935

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.38
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods2668.42%
▷ Protected methods00.00%
▷ Private methods1231.58%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.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
No PNG files were detected