90% codup-read-only-admin

Code Review | Codup Read Only Admin

WordPress plugin Codup Read Only Admin scored90%from 54 tests.

About plugin

  • Plugin page: codup-read-only-a...
  • Plugin version: 1.1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9.3
  • WordPress version: 6.3.1
  • First release: Feb 5, 2019
  • Latest release: Apr 27, 2022
  • Number of updates: 13
  • Update frequency: every 90.7 days
  • Top authors: codup (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /2,002 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.17MB] [CPU: ▼13.87ms] Passed 4 tests

Server-side resources used by Codup Read Only Admin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.00 ▼3.60
Dashboard /wp-admin3.33 ▼0.0250.93 ▼9.78
Posts /wp-admin/edit.php3.44 ▲0.0851.13 ▼16.47
Add New Post /wp-admin/post-new.php5.16 ▼0.7372.25 ▼25.64
Media Library /wp-admin/upload.php3.25 ▲0.0238.90 ▲2.49
Custom Page /wp-admin/admin.php?page=error-4043.2430.41

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Codup Read Only Admin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.33 ▼1.081.76 ▼0.0644.25 ▲1.83
Dashboard /wp-admin2,221 ▲215.87 ▲0.01107.45 ▼2.6739.27 ▼0.93
Posts /wp-admin/edit.php2,097 ▼32.16 ▲0.1439.38 ▼0.7534.29 ▲4.45
Add New Post /wp-admin/post-new.php1,545 ▲1423.16 ▲0.02610.63 ▼75.8355.44 ▲0.83
Media Library /wp-admin/upload.php1,403 ▲64.24 ▲0.05104.28 ▲3.6547.82 ▲2.38
Custom Page /wp-admin/admin.php?page=error-4047622.0225.2625.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 did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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

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
Please fix the following attributes: Please take inspiration from this readme.txt

codup-read-only-admin/codup-read-only-admin.php Passed 13 tests

Analyzing the main PHP file in "Codup Read Only Admin" version 1.1.1.8
61 characters long description:
This plugins allows to create an admin with read only access.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin239 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP545104217
JavaScript14519
CSS1203

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin