83% analyse-uploads

Code Review | Analyse Uploads

WordPress plugin Analyse Uploads scored83%from 54 tests.

About plugin

  • Plugin page: analyse-uploads
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jun 9, 2017
  • Latest release: Jun 9, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: jamesparkninja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /851 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.75ms] Passed 4 tests

Analyzing server-side resources used by Analyse Uploads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.98 ▲0.14
Dashboard /wp-admin3.37 ▲0.0642.94 ▼6.15
Posts /wp-admin/edit.php3.42 ▲0.0644.00 ▼1.32
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.06 ▼4.56
Media Library /wp-admin/upload.php3.29 ▲0.0632.01 ▼2.98

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Analyse Uploads: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲6313.26 ▼1.154.74 ▲2.5144.86 ▼8.16
Dashboard /wp-admin2,226 ▲385.86 ▲0.9696.48 ▼19.5539.09 ▼5.07
Posts /wp-admin/edit.php2,109 ▲202.05 ▲0.0433.70 ▼2.6834.00 ▲1.15
Add New Post /wp-admin/post-new.php1,531 ▼223.08 ▲0.06671.03 ▼16.8648.64 ▼2.84
Media Library /wp-admin/upload.php1,411 ▲264.20 ▲0.0294.15 ▼9.5940.57 ▼1.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • jpn_au_themefile
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/analyse-uploads/jpn-analyse-uploads.php:15

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: media library, analyse uploads, cleaner, analysis, prune...

analyse-uploads/jpn-analyse-uploads.php 77% from 13 tests

The main PHP file in "Analyse Uploads" ver. 0.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("analyse-uploads.php" instead of "jpn-analyse-uploads.php")

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
Good job! No executable or dangerous file extensions detected3,320 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions16100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin