94% scpo-wp-rocket-integration

Code Review | Integration of Simple Custom Post Order and WP Rocket

WordPress plugin Integration of Simple Custom Post Order and WP Rocket scored 94% from 54 tests.

About plugin

  • Plugin page: scpo-wp-rocket-in...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 5.8.1
  • First release: Jul 28, 2021
  • Latest release: Jul 29, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: gianlucagaspari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 90 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼146.99ms] Passed 4 tests

This is a short check of server-side resources used by Integration of Simple Custom Post Order and WP Rocket
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0032.59 ▼2.68
Dashboard /wp-admin3.06 ▲0.0141.31 ▼5.90
Posts /wp-admin/edit.php3.11 ▲0.0145.04 ▼0.91
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.89 ▼576.92
Media Library /wp-admin/upload.php3.01 ▲0.0032.07 ▼2.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Integration of Simple Custom Post Order and WP Rocket: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10716.33 ▲0.688.85 ▼2.4646.17 ▼7.72
Dashboard /wp-admin2,967 ▲365.86 ▼0.38142.87 ▼18.52107.30 ▲3.07
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0163.65 ▼1.2587.25 ▲4.41
Add New Post /wp-admin/post-new.php1,615 ▲1121.48 ▲2.62300.66 ▼87.80105.25 ▼2.34
Media Library /wp-admin/upload.php1,733 ▼745.00 ▲0.01180.72 ▲27.94116.64 ▲6.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scpo-wp-rocket-integration/scpo-wp-rocket-integration.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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 require attention:
  • Contributors: Contributors not specified
You can look at the official readme.txt

scpo-wp-rocket-integration/scpo-wp-rocket-integration.php Passed 13 tests

"Integration of Simple Custom Post Order and WP Rocket" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
Automatically cleans the WP Rocket cache when the posts order is changed

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10137

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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 Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin