84% appsy

Code Review | Appsy

WordPress plugin Appsy scored84%from 54 tests.

About plugin

  • Plugin page: appsy
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2020
  • Latest release: Oct 30, 2020
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: guymaprint (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /320 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.06MB] [CPU: ▼4.94ms] Passed 4 tests

An overview of server-side resources used by Appsy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.71 ▼4.13
Dashboard /wp-admin3.36 ▲0.0655.76 ▲2.86
Posts /wp-admin/edit.php3.47 ▲0.1249.35 ▼6.54
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.16 ▼8.96
Media Library /wp-admin/upload.php3.28 ▲0.0538.36 ▼0.12

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
appsy_id
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Appsy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.28 ▲0.011.84 ▲0.1742.11 ▼0.25
Dashboard /wp-admin2,215 ▲385.55 ▼0.0987.78 ▲0.0143.02 ▲1.61
Posts /wp-admin/edit.php2,123 ▲202.01 ▼0.0435.24 ▼7.8534.58 ▼6.83
Add New Post /wp-admin/post-new.php1,543 ▲1722.96 ▼0.31674.86 ▲39.2960.44 ▲9.47
Media Library /wp-admin/upload.php1,414 ▲174.17 ▼0.0198.13 ▼5.6742.68 ▼3.33

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • appsy_id

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/appsy/admin/partials/appsy-admin-display.php
    • > /wp-content/plugins/appsy/public/partials/appsy-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were detected

appsy/appsy.php Passed 13 tests

The main file in "Appsy" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
A plugin for wordpress of Appsy app.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin225 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12122536208
JSON10011
JavaScript24546
CSS2080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.57
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.16
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin