10% my-envato

Code Review | My Envato

WordPress plugin My Envato scored 10% from 54 tests.

About plugin

  • Plugin page: my-envato
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 5.8.1
  • First release: Mar 7, 2013
  • Latest release: Mar 7, 2013
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: polevaultweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,820 total downloads

Benchmarks

Plugin footprint 40% 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
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/my-envato/my-envato.php+49
    Function create_function() is deprecated

Server metrics [RAM: ▼1.83MB] [CPU: ▼217.97ms] Passed 4 tests

Analyzing server-side resources used by My Envato
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.81 ▼0.925.59 ▼15.23
Dashboard /wp-admin1.83 ▼1.236.47 ▼39.60
Posts /wp-admin/edit.php1.83 ▼1.284.89 ▼37.34
Add New Post /wp-admin/post-new.php1.83 ▼3.614.76 ▼767.92
Media Library /wp-admin/upload.php1.83 ▼1.187.28 ▼27.03

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_pvw_me_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Envato
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.95 ▲0.348.40 ▼4.8747.78 ▼5.55
Dashboard /wp-admin2,970 ▲395.91 ▼0.04136.32 ▼18.66110.08 ▼6.55
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0161.30 ▼4.4282.88 ▼11.66
Add New Post /wp-admin/post-new.php1,504 ▲618.59 ▼0.27368.56 ▲2.01110.04 ▼7.60
Media Library /wp-admin/upload.php1,807 ▼05.08 ▲0.04149.63 ▼2.06114.72 ▲4.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/my-envato/my-envato.php+49
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_pvw_me_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/my-envato/my-envato.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

my-envato/my-envato.php Passed 13 tests

The main PHP file in "My Envato" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
A super simple plugin to display your recent 25 items from an Envato Marketplace.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin118 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12419118

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected