84% admin-screenshots

Code Review | Admin Screenshots

WordPress plugin Admin Screenshots scored 84% from 54 tests.

About plugin

  • Plugin page: admin-screenshots
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 14, 2023
  • Latest release: Mar 18, 2023
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: senff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 191 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Admin Screenshots
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.67 ▼3.42
Dashboard /wp-admin3.32 ▲0.0246.50 ▼3.23
Posts /wp-admin/edit.php3.37 ▲0.0248.97 ▼0.73
Add New Post /wp-admin/post-new.php5.92 ▲0.0495.65 ▲0.03
Media Library /wp-admin/upload.php3.25 ▲0.0237.02 ▲2.96

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Admin Screenshots
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲10013.45 ▼0.921.81 ▲0.1428.33 ▼11.07
Dashboard /wp-admin2,225 ▲335.16 ▲0.12115.21 ▲6.9141.15 ▼1.53
Posts /wp-admin/edit.php2,108 ▲192.27 ▲0.2743.25 ▲6.9235.85 ▲0.49
Add New Post /wp-admin/post-new.php1,524 ▲1023.81 ▲6.36659.04 ▼10.7438.39 ▼13.52
Media Library /wp-admin/upload.php1,407 ▲164.40 ▲0.1799.95 ▲2.1447.09 ▲1.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/admin-screenshots/admin-screenshots.php

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: share, debug, screenshot, admin

admin-screenshots/admin-screenshots.php Passed 13 tests

The main PHP file in "Admin Screenshots" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
130 characters long description:
The easiest way to share a screenshot of any of your site's settings pages, without giving anyone direct access to your dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin7,631 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31373367,440
PHP3161879
CSS26057
Markdown125055

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions4
▷ Named functions4100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/shot-2.png7.58KB4.44KB▼ 41.41%
assets/images/shot-1.png8.14KB4.75KB▼ 41.71%