78% argiope-amoena

Code Review | Argiope amoena

WordPress plugin Argiope amoena scored78%from 54 tests.

About plugin

  • Plugin page: argiope-amoena
  • Plugin version: 0.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.6
  • WordPress version: 6.3.1
  • First release: Mar 10, 2017
  • Latest release: Dec 31, 2020
  • Number of updates: 14
  • Update frequency: every 98.6 days
  • Top authors: fu94ma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,576 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.30MB] [CPU: ▼0.02ms] Passed 4 tests

Server-side resources used by Argiope amoena
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3338.29 ▼0.59
Dashboard /wp-admin3.63 ▲0.3349.29 ▲1.66
Posts /wp-admin/edit.php3.68 ▲0.3348.30 ▲5.11
Add New Post /wp-admin/post-new.php6.15 ▲0.2780.53 ▼2.98
Media Library /wp-admin/upload.php3.49 ▲0.2735.81 ▲1.83
Argiope amoena /wp-admin/options-general.php?page=argiope-amoena3.4631.11

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,548 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Argiope amoena
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.32 ▼0.031.60 ▼0.0539.28 ▼4.61
Dashboard /wp-admin2,196 ▲225.53 ▼0.0582.28 ▼4.0736.52 ▼5.22
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0237.94 ▲2.1136.72 ▲1.57
Add New Post /wp-admin/post-new.php1,530 ▲223.14 ▲0.18685.10 ▲21.4271.00 ▲14.48
Media Library /wp-admin/upload.php1,404 ▲44.27 ▲0.1594.35 ▼1.5341.01 ▼1.64
Argiope amoena /wp-admin/options-general.php?page=argiope-amoena9671.9921.9825.66

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

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=argiope-amoena
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=argiope-amoena
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 fix the following
  • 1265× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Aws\\Common\\Model\\MultipartUpload\\TransferStateInterface' not found in wp-content/plugins/argiope-amoena/includes/vendor/aws/aws-sdk-php/src/Aws/Common/Model/MultipartUpload/AbstractTransferState.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Common\\Enum' not found in wp-content/plugins/argiope-amoena/includes/vendor/aws/aws-sdk-php/src/Aws/ElasticBeanstalk/Enum/EnvironmentHealth.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Common\\Enum' not found in wp-content/plugins/argiope-amoena/includes/vendor/aws/aws-sdk-php/src/Aws/OpsWorks/Enum/LayerType.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/argiope-amoena/includes/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/SchemaValidatorTest.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\EventDispatcher\\EventSubscriberInterface' not found in wp-content/plugins/argiope-amoena/includes/vendor/aws/aws-sdk-php/src/Aws/Common/Client/UserAgentListener.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Common\\Enum' not found in wp-content/plugins/argiope-amoena/includes/vendor/aws/aws-sdk-php/src/Aws/S3/Enum/CannedAcl.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/argiope-amoena/includes/vendor/guzzle/guzzle/tests/Guzzle/Tests/Cache/NullCacheAdapterTest.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Common\\Exception\\ServiceResponseException' not found in wp-content/plugins/argiope-amoena/includes/vendor/aws/aws-sdk-php/src/Aws/CognitoIdentity/Exception/CognitoIdentityException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\S3\\Exception\\S3Exception' not found in wp-content/plugins/argiope-amoena/includes/vendor/aws/aws-sdk-php/src/Aws/S3/Exception/NoSuchCORSConfigurationException.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Guzzle\\Service\\Resource\\ResourceIteratorFactoryInterface' not found in wp-content/plugins/argiope-amoena/includes/vendor/guzzle/guzzle/src/Guzzle/Service/Resource/AbstractResourceIteratorFactory.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: aws, media, amazon, admin, uploads...

argiope-amoena/argiope-amoena.php 92% from 13 tests

This is the main PHP file of "Argiope amoena" version 0.3.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 202 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin246,086 lines of code in 1,528 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,43711,00939,908240,651
reStructuredText301,2361,7941,824
JSON371501,376
Markdown830501,356
XML42911212
CSS2192142
make1245124
JavaScript21338123
HTML216095
PO File2222886
Python1222349
Ant110134
YAML13014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.48
▷ Minimum class complexity1.00
▷ Maximum class complexity113.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces256
Interfaces76
Traits0
Classes1,333
▷ Abstract classes382.85%
▷ Concrete classes1,29597.15%
▷ Final classes10.08%
Methods4,058
▷ Static methods2917.17%
▷ Public methods3,59188.49%
▷ Protected methods3528.67%
▷ Private methods1152.83%
Functions160
▷ Named functions10.62%
▷ Anonymous functions15999.38%
Constants1,088
▷ Global constants00.00%
▷ Class constants1,088100.00%
▷ Public constants1,088100.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
2 PNG files occupy 0.24MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/vendor/guzzle/guzzle/docs/_static/guzzle-icon.png0.78KB0.94KB0.00%
includes/vendor/guzzle/guzzle/docs/_static/logo.png241.87KB69.68KB▼ 71.19%