84% prograpper

Code Review | Prograpper

WordPress plugin Prograpper scored 84% from 54 tests.

About plugin

  • Plugin page: prograpper
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 21, 2015
  • Latest release: Oct 24, 2015
  • Number of updates: 22
  • Update frequency: every 3.1 days
  • Top authors: moussaoui (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,210 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.77MB] [CPU: ▲4.45ms] Passed 4 tests

This is a short check of server-side resources used by Prograpper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.37 ▲0.9145.41 ▲3.39
Dashboard /wp-admin4.06 ▲0.7661.35 ▲9.56
Posts /wp-admin/edit.php4.12 ▲0.7653.67 ▲7.09
Add New Post /wp-admin/post-new.php6.67 ▲0.7891.53 ▼2.24
Media Library /wp-admin/upload.php3.99 ▲0.7642.51 ▲10.41

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
json_api_plugin_version
widget_recent-posts
prograpper_settings

Browser metrics Passed 4 tests

A check of browser resources used by Prograpper
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.25 ▼1.121.80 ▼0.0745.10 ▼5.48
Dashboard /wp-admin2,213 ▲225.86 ▲0.01104.66 ▲6.6575.86 ▲30.66
Posts /wp-admin/edit.php2,105 ▲162.02 ▲0.0334.51 ▼4.6732.59 ▼2.05
Add New Post /wp-admin/post-new.php1,684 ▲17021.58 ▲4.04716.98 ▲13.0156.74 ▼2.80
Media Library /wp-admin/upload.php1,407 ▲194.20 ▲0.01100.46 ▼15.0167.90 ▲19.89

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 8 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • prograpper_settings
    • json_api_plugin_version
    • widget_theysaidso_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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 43× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Test_JSON_TestCase' not found in wp-content/plugins/prograpper/wp-api/tests/test-json-posts.php:9
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/class-wp-json-server.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/prograpper/wp-api/lib/wp-json.php on line 30
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/prograpper/wp-api/tests/test-json-post-revisions.php:10
    • > PHP Warning
      include_once(ABSPATHWPINC/class-wp-xmlrpc-server.php): failed to open stream: No such file or directory in wp-content/plugins/prograpper/wp-api/lib/wp-json.php on line 28
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/prograpper/wp-api/tests/test-json-testcase.php:3
    • > PHP Warning
      require(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/prograpper/wp-api/tests/bootstrap.php on line 21
    • > PHP Fatal error
      Uncaught Error: Class 'WP_JSON_Posts' not found in wp-content/plugins/prograpper/wp-api/lib/class-wp-json-media.php:3
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/prograpper/wp-api/lib/wp-json.php on line 30
    • > PHP Fatal error
      Uncaught Error: Class 'WP_JSON_Taxonomies' not found in wp-content/plugins/prograpper/wp-api/tests/taxonomies_caller.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/prograpper/wp-api/lib/wp-json.php on line 29

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: Contributors not specified
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

prograpper/prograpper.php Passed 13 tests

The principal PHP file in "Prograpper" v. 0.0.6 is loaded by WordPress automatically on each request
101 characters long description:
Create (android / ios ) App for your WordPress Site, Be close to your audience, and get more traffic.

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
Everything looks great! No dangerous files found in this plugin6,890 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP441,5322,6754,998
Markdown237601,185
JavaScript3145319587
Bourne Shell115459
PO File110835
XML12126
CSS2080

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity15.44
▷ Minimum class complexity1.00
▷ Maximum class complexity127.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes31
▷ Abstract classes39.68%
▷ Concrete classes2890.32%
▷ Final classes00.00%
Methods363
▷ Static methods30.83%
▷ Public methods30584.02%
▷ Protected methods4913.50%
▷ Private methods92.48%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants735.00%
▷ Class constants1365.00%
▷ Public constants13100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/prograpper-wordpress.png0.36KB0.32KB▼ 13.40%