84% better-admin-reading

Code Review | Better Admin Reading

WordPress plugin Better Admin Reading scored84%from 54 tests.

About plugin

  • Plugin page: better-admin-reading
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 6.3.1
  • First release: Dec 25, 2013
  • Latest release: Dec 26, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: wycks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,081 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Better Admin Reading
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.59 ▼2.05
Dashboard /wp-admin3.31 ▲0.0145.49 ▼4.28
Posts /wp-admin/edit.php3.36 ▲0.0048.47 ▲3.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.83 ▼4.66
Media Library /wp-admin/upload.php3.23 ▲0.0035.24 ▼1.96

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Better Admin Reading
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.56 ▼1.031.72 ▼0.2837.62 ▼5.99
Dashboard /wp-admin2,197 ▲95.78 ▼0.07100.76 ▼1.6247.87 ▲4.42
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0239.80 ▲0.2040.56 ▲7.59
Add New Post /wp-admin/post-new.php1,525 ▼918.53 ▼4.57603.14 ▼62.3848.39 ▼11.72
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0492.60 ▼3.9740.92 ▼2.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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 | 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-admin-reading/better-admin-reading.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: ui, admin, admin menu, ux, interface

better-admin-reading/better-admin-reading.php 92% from 13 tests

The main file in "Better Admin Reading" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)

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
Good job! No executable or dangerous file extensions detected135 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1389130
PHP17255

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin