10% stafflist

Code Review | StaffList

WordPress plugin StaffList scored10%from 54 tests.

About plugin

  • Plugin page: stafflist
  • Plugin version: 3.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 21, 2013
  • Latest release: Feb 5, 2023
  • Number of updates: 98
  • Update frequency: every 35.6 days
  • Top authors: era404 (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

200+ active /15,590 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/stafflist/stafflist.php+40
    Undefined variable: wpdb

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

An overview of server-side resources used by StaffList
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.94 ▲7.36
Dashboard /wp-admin3.32 ▲0.0246.00 ▼3.06
Posts /wp-admin/edit.php3.37 ▲0.0243.35 ▼4.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0479.59 ▼9.76
Media Library /wp-admin/upload.php3.25 ▲0.0239.87 ▲6.57

Server storage [IO: ▲0.26MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: 2 new tables, 6 new options
New tables
wp_stafflist
wp_stafflist_meta
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for StaffList
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲15713.55 ▼0.709.75 ▲8.1644.98 ▲5.98
Dashboard /wp-admin2,212 ▲325.70 ▲0.0881.15 ▼2.6572.12 ▲30.15
Posts /wp-admin/edit.php2,100 ▼02.33 ▲0.3735.38 ▼5.5134.69 ▼2.44
Add New Post /wp-admin/post-new.php1,544 ▲1623.06 ▼0.01760.73 ▲125.3537.08 ▼14.07
Media Library /wp-admin/upload.php1,408 ▲114.21 ▼0.0097.14 ▼6.1066.95 ▲23.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/stafflist/stafflist.php:37

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 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
6 plugin tags: directory, faculty, phonebook, personnel, rubrik...

stafflist/stafflist.php Passed 13 tests

The primary PHP file in "StaffList" version 3.2.1 is used by WordPress to initiate all plugin functionality
39 characters long description:
A super simplified staff directory tool

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 detected4,356 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP65417903,327
CSS25163743
JavaScript43586273
SVG20013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity110.25
▷ Minimum class complexity39.00
▷ Maximum class complexity153.00
Average method complexity5.80
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods91
▷ Static methods1213.19%
▷ Public methods6369.23%
▷ Protected methods2830.77%
▷ Private methods00.00%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants62
▷ Global constants34.84%
▷ Class constants5995.16%
▷ Public constants59100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/bulcclub.png2.74KB1.77KB▼ 35.19%
img/admin_icon.png0.51KB0.43KB▼ 15.61%
img/edit.png1.08KB0.29KB▼ 73.67%
img/okay.png1.02KB0.14KB▼ 86.63%