90% subthree-link

Code Review | Subthree Link

WordPress plugin Subthree Link scored90%from 54 tests.

About plugin

  • Plugin page: subthree-link
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Oct 26, 2018
  • Latest release: Jan 14, 2019
  • Number of updates: 6
  • Update frequency: every 13.5 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /470 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.96ms] Passed 4 tests

An overview of server-side resources used by Subthree Link
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.60 ▼1.36
Dashboard /wp-admin3.33 ▼0.0250.29 ▼6.06
Posts /wp-admin/edit.php3.38 ▲0.0243.96 ▼6.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.15 ▼26.17
Media Library /wp-admin/upload.php3.25 ▲0.0236.30 ▲3.43

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Subthree Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.17 ▼1.521.71 ▼0.0843.03 ▲1.17
Dashboard /wp-admin2,206 ▲185.84 ▲0.95110.23 ▲0.1943.28 ▼0.74
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0234.20 ▼4.2633.16 ▼1.75
Add New Post /wp-admin/post-new.php1,522 ▲222.99 ▼0.16687.96 ▲15.6757.40 ▲5.66
Media Library /wp-admin/upload.php1,391 ▲124.23 ▼0.01105.45 ▲3.4651.52 ▲4.87

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: subsubsub

subthree-link/subthree-link.php Passed 13 tests

The entry point to "Subthree Link" version 1.0.1 is a PHP file that has certain tags in its header comment area
51 characters long description:
Restore subsubsub link parameter for search & sort.

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 plugin54 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1155554

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin