89% processing-projects

Code Review | Processing Projects

WordPress plugin Processing Projects scored89%from 54 tests.

About plugin

  • Plugin page: processing-projects
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.2
  • WordPress version: 6.3.1
  • First release: Feb 24, 2018
  • Latest release: Sep 29, 2019
  • Number of updates: 8
  • Update frequency: every 73.4 days
  • Top authors: LABCAT (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /1,443 total downloads

Benchmarks

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.09MB] [CPU: ▼8.23ms] Passed 4 tests

A check of server-side resources used by Processing Projects
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.02 ▼5.16
Dashboard /wp-admin3.41 ▲0.1144.41 ▼5.10
Posts /wp-admin/edit.php3.52 ▲0.1745.43 ▼0.87
Add New Post /wp-admin/post-new.php5.99 ▲0.1182.06 ▼21.03
Media Library /wp-admin/upload.php3.33 ▲0.1034.08 ▼1.62
Processing Projects /wp-admin/edit.php?post_type=processing-project3.3735.65
Add Processing Project /wp-admin/post-new.php?post_type=processing-project3.3748.53

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
pp_meta_box_errors
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Processing Projects
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.18 ▼1.111.75 ▼0.0638.92 ▼5.49
Dashboard /wp-admin2,233 ▲455.84 ▼0.01100.08 ▼2.1440.99 ▼2.83
Posts /wp-admin/edit.php2,116 ▲272.00 ▼0.0034.83 ▼7.9632.62 ▼3.67
Add New Post /wp-admin/post-new.php1,565 ▲3718.18 ▼0.24596.81 ▼36.3663.86 ▼1.53
Media Library /wp-admin/upload.php1,415 ▲304.22 ▲0.0097.32 ▼29.5643.28 ▼3.87
Processing Projects /wp-admin/edit.php?post_type=processing-project1,0961.9330.6429.84
Add Processing Project /wp-admin/post-new.php?post_type=processing-project1,5292.5648.5346.17

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • pp_meta_box_errors
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 your attention:
  • Screenshots: Add images for these screenshots: #1 (Add New Processing Project), #2 (Published Processing Project), #3 (Processing Projects Post Table - Displaying all Shortcodes for Uploaded Projects)
The official readme.txt is a good inspiration

processing-projects/processing-projects.php 92% from 13 tests

The principal PHP file in "Processing Projects" v. 1.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.9.2" instead of "4.9")

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
Success! There were no dangerous files found in this plugin405 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP572164405

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.20
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods23
▷ Static methods834.78%
▷ Public methods2086.96%
▷ Protected methods00.00%
▷ Private methods313.04%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png32.28KB13.45KB▼ 58.35%
screenshot-3.png71.64KB38.00KB▼ 46.96%
screenshot-2.png18.81KB9.95KB▼ 47.11%