84% rackspace-news

Code Review | Rackspace News

WordPress plugin Rackspace News scored84%from 54 tests.

About plugin

  • Plugin page: rackspace-news
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-3.9
  • WordPress version: 6.3.1
  • First release: Apr 30, 2014
  • Latest release: Apr 30, 2014
  • Number of updates: 6
  • Update frequency: every 19.5 days
  • Top authors: bhubbard (83.33%)imforza (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.93ms] Passed 4 tests

This is a short check of server-side resources used by Rackspace News
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0446.81 ▲10.79
Dashboard /wp-admin3.87 ▲0.572,190.48 ▲2,139.05
Posts /wp-admin/edit.php3.39 ▲0.0344.19 ▼2.53
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.31 ▼18.23
Media Library /wp-admin/upload.php3.26 ▲0.0334.51 ▼1.75

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
rackspace_version
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Rackspace News
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,020 ▲24913.37 ▼1.051.97 ▲0.0933.00 ▼8.82
Dashboard /wp-admin2,366 ▲1815.85 ▲0.9797.64 ▼5.4044.99 ▼0.62
Posts /wp-admin/edit.php2,121 ▲322.02 ▲0.0236.77 ▼0.6832.40 ▼6.55
Add New Post /wp-admin/post-new.php1,555 ▲1318.20 ▼0.06603.74 ▼45.4849.33 ▼14.48
Media Library /wp-admin/upload.php1,420 ▲324.22 ▼0.0193.87 ▼20.5341.79 ▼6.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • rackspace_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× 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/rackspace-news/dashboard.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rackspace-news/adminbar.php:71
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rackspace-news/dashboard.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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Screenshot for Service Details Admin Dashboard Widget.), #2 (Screenshot for System Status Admin Dashboard Widget.), #3 (Screenshot for Latest News Admin Dashboard Widget.), #4 (Screenshot for KnowledgeBase Admin Dashboard Widget.), #5 (Screenshot for Server Status Admin Dashboard Widget.), #6 (Screenshot for Settings Page.)
You can take inspiration from this readme.txt

rackspace-news/rackspace.php 92% from 13 tests

"Rackspace News" version 1.0.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: Please rename the main PHP file in this plugin to the plugin slug ("rackspace-news.php" instead of "rackspace.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin122 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34751122

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.03
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin