84% assign-related-posts

Code Review | Assign Related Posts

WordPress plugin Assign Related Posts scored 84% from 54 tests.

About plugin

  • Plugin page: assign-related-posts
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Jan 23, 2018
  • Latest release: Jan 27, 2018
  • Number of updates: 15
  • Update frequency: every 0.3 days
  • Top authors: arshdeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.81ms] Passed 4 tests

A check of server-side resources used by Assign Related Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.32 ▲2.60
Dashboard /wp-admin3.33 ▲0.0345.04 ▼2.24
Posts /wp-admin/edit.php3.38 ▲0.0346.27 ▼1.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.00 ▼13.06
Media Library /wp-admin/upload.php3.26 ▲0.0332.09 ▼2.31
Assign Related Post /wp-admin/options-general.php?page=rps_settings3.2029.48

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Assign Related Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5713.39 ▼1.061.71 ▼0.0242.68 ▼1.00
Dashboard /wp-admin2,216 ▲284.89 ▼0.96107.18 ▼2.3738.59 ▼7.38
Posts /wp-admin/edit.php2,099 ▲72.02 ▼0.0240.93 ▲0.0134.96 ▼1.78
Add New Post /wp-admin/post-new.php1,532 ▼218.17 ▼4.97596.31 ▼32.0552.93 ▲2.38
Media Library /wp-admin/upload.php1,398 ▲74.21 ▲0.0496.85 ▼4.6042.32 ▼2.89
Assign Related Post /wp-admin/options-general.php?page=rps_settings8102.0626.2026.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rps_settings
    • > Notice in wp-content/plugins/assign-related-posts/pages/rps-functions.php+30
    Undefined variable: status

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png)
You can look at the official readme.txt

assign-related-posts/assign-related-posts.php Passed 13 tests

Analyzing the main PHP file in "Assign Related Posts" version 1.0.1
39 characters long description:
Assigns related posts to specific post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,786 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript19691,164
CSS21226475
PHP33320147

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
4 PNG files occupy 0.29MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png201.96KB51.59KB▼ 74.46%
screenshot-2.png37.17KB20.56KB▼ 44.70%
screenshot-1.png60.48KB15.83KB▼ 73.82%
images/chosen-sprite.png0.53KB0.88KB0.00%