93% plusnarrative-admin-theme

Code Review | PlusNarrative Admin Theme

WordPress plugin PlusNarrative Admin Theme scored 93% from 54 tests.

About plugin

  • Plugin page: plusnarrative-adm...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1
  • WordPress version: 5.8.1
  • First release: Feb 14, 2015
  • Latest release: Feb 14, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: lliamscholtz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 721 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼176.46ms] Passed 4 tests

A check of server-side resources used by PlusNarrative Admin Theme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0235.18 ▼6.67
Dashboard /wp-admin3.05 ▼0.0141.10 ▼9.97
Posts /wp-admin/edit.php3.13 ▲0.0249.84 ▼0.40
Add New Post /wp-admin/post-new.php5.43 ▲0.0094.65 ▼688.79
Media Library /wp-admin/upload.php3.02 ▲0.0235.69 ▲4.25

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by PlusNarrative Admin Theme
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,594 ▼1,00215.63 ▼0.108.80 ▼3.1055.98 ▲8.05
Dashboard /wp-admin1,881 ▼1,0535.57 ▼0.59151.33 ▼26.8284.57 ▼34.52
Posts /wp-admin/edit.php2,714 ▼252.70 ▼0.0273.62 ▲2.0089.93 ▼3.04
Add New Post /wp-admin/post-new.php1,596 ▼8721.42 ▲3.13302.02 ▼140.12110.82 ▼2.33
Media Library /wp-admin/upload.php1,782 ▼255.00 ▼0.02161.22 ▼16.61113.79 ▼7.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plusnarrative-admin-theme/pn-admin-theme.php:15

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 90% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (*Dashboard*), #2 (*Login Page*)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === plusnarrative-admin-theme === )
The official readme.txt might help

plusnarrative-admin-theme/pn-admin-theme.php 92% from 13 tests

The primary PHP file in "PlusNarrative Admin Theme" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("plusnarrative-admin-theme.php" instead of "pn-admin-theme.php")

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 detected129 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1262195
CSS10034

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions9
▷ Named functions9100.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
4 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/plusnarrative-logo-full.png5.67KB3.86KB▼ 31.94%
screenshot-1.png75.20KB24.52KB▼ 67.40%
screenshot-2.png27.30KB11.34KB▼ 58.45%
img/plusnarrative-logo.png22.25KB13.05KB▼ 41.36%