90% admin-starred-posts

Code Review | Admin Starred Posts

WordPress plugin Admin Starred Posts scored90%from 54 tests.

About plugin

  • Plugin page: admin-starred-posts
  • Plugin version: 2.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.1
  • WordPress version: 6.3.1
  • First release: May 8, 2015
  • Latest release: Apr 13, 2019
  • Number of updates: 34
  • Update frequency: every 42.2 days
  • Top authors: innocuo (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /3,870 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.31ms] Passed 4 tests

An overview of server-side resources used by Admin Starred Posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.89 ▼2.53
Dashboard /wp-admin3.33 ▲0.0246.61 ▼1.47
Posts /wp-admin/edit.php3.39 ▲0.0446.81 ▼0.52
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.50 ▼8.72
Media Library /wp-admin/upload.php3.25 ▲0.0234.81 ▲0.39
Starred Posts /wp-admin/options-general.php?page=ino-starred-settings3.2232.59

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
ino_starred_common

Browser metrics Passed 4 tests

Checking browser requirements for Admin Starred Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.23 ▼1.521.64 ▼0.3141.63 ▼2.17
Dashboard /wp-admin2,210 ▲226.09 ▲0.95102.97 ▼1.6140.15 ▼2.07
Posts /wp-admin/edit.php2,142 ▲532.17 ▲0.1738.01 ▲1.9436.68 ▼1.71
Add New Post /wp-admin/post-new.php1,540 ▲723.28 ▼0.16653.35 ▼2.8754.17 ▼10.62
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0495.54 ▼1.6842.53 ▼1.29
Starred Posts /wp-admin/options-general.php?page=ino-starred-settings9482.2533.3131.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • ino_starred_common

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

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 Passed 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
7 plugin tags: admin, posts, stars, gmail, organize...

admin-starred-posts/admin-starred-posts.php Passed 13 tests

The primary PHP file in "Admin Starred Posts" version 2.5.0 is used by WordPress to initiate all plugin functionality
130 characters long description:
Stars everywhere! This plugin lets administrators/editors/authors bookmark posts,pages and custom posts with different star styles

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
Good job! No executable or dangerous file extensions detected705 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP417439497
JavaScript2429109
CSS120399

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity20.33
▷ Minimum class complexity4.00
▷ Maximum class complexity39.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods32
▷ Static methods39.38%
▷ Public methods2578.12%
▷ Protected methods00.00%
▷ Private methods721.88%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/sprite_stars.png2.26KB2.32KB0.00%
img/col.png0.36KB0.44KB0.00%