90% admin-starred-posts

Code Review | Admin Starred Posts

WordPress plugin Admin Starred Posts scored 90% 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: 5.8.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

5 reviews

Install metrics

400+ active / 3,244 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼150.47ms] Passed 4 tests

An overview of server-side resources used by Admin Starred Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0736.04 ▲11.24
Dashboard /wp-admin3.15 ▲0.0834.30 ▼8.17
Posts /wp-admin/edit.php3.27 ▲0.1732.63 ▼1.00
Add New Post /wp-admin/post-new.php5.51 ▲0.0771.53 ▼594.58
Media Library /wp-admin/upload.php3.09 ▲0.0926.04 ▲1.86
Starred Posts /wp-admin/options-general.php?page=ino-starred-settings3.0622.25

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
ino_starred_common

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Starred Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,671 ▲7015.57 ▼0.105.01 ▼0.4775.28 ▲0.67
Dashboard /wp-admin2,934 ▲386.14 ▼0.05113.35 ▼16.77168.17 ▲0.66
Posts /wp-admin/edit.php2,801 ▲643.37 ▲0.1362.30 ▼3.52147.41 ▲14.60
Add New Post /wp-admin/post-new.php3,746 ▼17718.75 ▼0.36437.79 ▲21.53156.07 ▼8.95
Media Library /wp-admin/upload.php1,757 ▲25.51 ▼0.01147.29 ▼2.36186.79 ▲4.07
Starred Posts /wp-admin/options-general.php?page=ino-starred-settings1,2773.1059.34142.27

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 option in the database
    • ino_starred_common

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: productivity, organize, gmail, stars, posts...

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

The entry point to "Admin Starred Posts" version 2.5.0 is a PHP file that has certain tags in its header comment area
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin705 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
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%