84% author-list

Code Review | Author List

WordPress plugin Author List scored84%from 54 tests.

About plugin

  • Plugin page: author-list
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Dec 25, 2013
  • Latest release: Aug 25, 2015
  • Number of updates: 27
  • Update frequency: every 22.6 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /3,363 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Author List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.05 ▼4.72
Dashboard /wp-admin3.31 ▲0.0149.03 ▼0.82
Posts /wp-admin/edit.php3.37 ▲0.0152.08 ▼3.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.82 ▼8.66
Media Library /wp-admin/upload.php3.24 ▲0.0138.28 ▲4.16

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_buffercode_author_list_info
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Author List
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▲0.011.89 ▲0.3042.89 ▲0.54
Dashboard /wp-admin2,195 ▲215.61 ▼0.0589.55 ▼4.6339.33 ▼2.07
Posts /wp-admin/edit.php2,103 ▼01.96 ▼0.0538.63 ▼3.3436.99 ▼0.82
Add New Post /wp-admin/post-new.php1,526 ▼023.69 ▼0.10671.68 ▼20.6453.82 ▼1.67
Media Library /wp-admin/upload.php1,397 ▼64.19 ▼0.0298.28 ▼2.2644.43 ▼1.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_buffercode_author_list_info
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-list/author-list.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
9 plugin tags: author related, only author, author list, authors, show author...

author-list/author-list.php Passed 13 tests

Analyzing the main PHP file in "Author List" version 2.2.1
108 characters long description:
Easy way to display the number of post in that particular category by selecting from admin dashboard widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin184 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14712140
CSS28244

PHP code Passed 2 tests

Analyzing 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.40
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity7.75
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png32.10KB9.67KB▼ 69.88%
screenshot-1.png5.24KB2.81KB▼ 46.34%
screenshot-3.png13.54KB6.74KB▼ 50.22%