84% pxfinder-box

Code Review | PxFinder-Box

WordPress plugin PxFinder-Box scored84%from 54 tests.

About plugin

  • Plugin page: pxfinder-box
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 6.3.1
  • First release: Mar 28, 2014
  • Latest release: Mar 29, 2014
  • Number of updates: 19
  • Update frequency: every 0.1 days
  • Top authors: munimumu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /795 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
Installer ran successfully

Server metrics [RAM: ▼0.36MB] [CPU: ▼20.19ms] Passed 4 tests

Server-side resources used by PxFinder-Box
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.425.03 ▼39.19
Dashboard /wp-admin3.31 ▼0.0452.45 ▼16.27
Posts /wp-admin/edit.php3.36 ▲0.0046.70 ▼4.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.27 ▼20.58
Media Library /wp-admin/upload.php3.23 ▲0.0039.47 ▲2.67

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for PxFinder-Box
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲13013.39 ▼0.898.16 ▲6.1843.65 ▲1.20
Dashboard /wp-admin2,198 ▲215.57 ▼0.2288.26 ▼2.4538.95 ▼3.52
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0232.54 ▼5.3334.25 ▼1.84
Add New Post /wp-admin/post-new.php1,528 ▼023.30 ▲0.22652.91 ▲36.0159.94 ▲10.89
Media Library /wp-admin/upload.php1,397 ▼04.21 ▼0.01107.81 ▲1.9845.00 ▲1.49

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% 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 50% 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/pxfinder-box/pxfinder-box.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Smartphone [screenshot-2.jpg])
Please take inspiration from this readme.txt

pxfinder-box/pxfinder-box.php Passed 13 tests

The main PHP file in "PxFinder-Box" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
20 characters long description:
Simple image viewer.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin54 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP151020
CSS112016
SVG10013
JavaScript1005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 1.69MB with 1.27MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot1.png1,254.78KB316.16KB▼ 74.80%
screenshot2.png476.02KB117.73KB▼ 75.27%