84% awesomepress

Code Review | AwesomePress

WordPress plugin AwesomePress scored84%from 54 tests.

About plugin

  • Plugin page: awesomepress
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Jun 27, 2013
  • Latest release: Jun 28, 2013
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: re_enter_rupok (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,342 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by AwesomePress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0246.18 ▲6.03
Dashboard /wp-admin3.32 ▲0.0145.57 ▼4.32
Posts /wp-admin/edit.php3.37 ▲0.0150.75 ▲2.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.72 ▼11.13
Media Library /wp-admin/upload.php3.24 ▲0.0134.44 ▼0.55

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for AwesomePress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7514.23 ▼0.451.60 ▼0.3237.42 ▼12.06
Dashboard /wp-admin2,203 ▲185.80 ▼0.11106.02 ▲3.6539.65 ▼0.36
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0240.32 ▲2.3735.36 ▲3.74
Add New Post /wp-admin/post-new.php1,514 ▼017.72 ▲0.22658.20 ▼25.4652.66 ▲0.79
Media Library /wp-admin/upload.php1,391 ▲34.18 ▲0.0395.68 ▼11.7245.51 ▲1.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesomepress/AwesomePress.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: font-awesome, font awesome for wordpress, font icon, icon font, icons...

awesomepress/AwesomePress.php 92% from 13 tests

"AwesomePress" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("awesomepress.php" instead of "AwesomePress.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 detected1,232 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
SVG4001,122
CSS524482
PHP1132528

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected