10% vd-alexa-and-pagerank

Code Review | vdwp-alexa

WordPress plugin vdwp-alexa scored10%from 54 tests.

About plugin

  • Plugin page: vd-alexa-and-page...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2014
  • Latest release: Feb 10, 2014
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: Verdande (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /711 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/vd-alexa-and-pagerank/vdwp-alexa.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; vdwp_alexa has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼57.30ms] Passed 4 tests

Server-side resources used by vdwp-alexa
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.05 ▼36.54
Dashboard /wp-admin2.08 ▼1.225.94 ▼41.70
Posts /wp-admin/edit.php2.08 ▼1.287.06 ▼46.28
Add New Post /wp-admin/post-new.php2.08 ▼3.815.85 ▼104.66
Media Library /wp-admin/upload.php2.08 ▼1.156.49 ▼27.48

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for vdwp-alexa
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.101.80 ▲0.1247.40 ▲5.54
Dashboard /wp-admin2,203 ▲155.84 ▼0.0697.56 ▼8.0038.21 ▼9.04
Posts /wp-admin/edit.php2,092 ▲61.99 ▼0.0339.13 ▼0.8833.80 ▼6.24
Add New Post /wp-admin/post-new.php1,534 ▼423.28 ▲0.11648.22 ▲43.1956.61 ▼5.33
Media Library /wp-admin/upload.php1,391 ▲34.30 ▲0.1094.92 ▼9.0544.18 ▲1.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/vd-alexa-and-pagerank/vdwp-alexa.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; vdwp_alexa has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_alexa-widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vd-alexa-and-pagerank/vdwp-alexa.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === vd-alexa-and-pagerank === )
The official readme.txt is a good inspiration

vd-alexa-and-pagerank/vdwp-alexa.php 92% from 13 tests

The primary PHP file in "vdwp-alexa" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vd-alexa-and-pagerank.php" instead of "vdwp-alexa.php")

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
Success! There were no dangerous files found in this plugin40 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1281440

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin