89% professione-architetto-job

Code Review | professione Architetto Job

WordPress plugin professione Architetto Job scored 89% from 54 tests.

About plugin

  • Plugin page: professione-archi...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.5
  • WordPress version: 6.3.1
  • First release: Oct 28, 2016
  • Latest release: Apr 11, 2018
  • Number of updates: 19
  • Update frequency: every 28.0 days
  • Top authors: labdav (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 662 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.34ms] Passed 4 tests

Analyzing server-side resources used by professione Architetto Job
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.61 ▲1.69
Dashboard /wp-admin3.36 ▲0.0545.21 ▼9.08
Posts /wp-admin/edit.php3.41 ▲0.0546.24 ▼0.38
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.10 ▼5.14
Media Library /wp-admin/upload.php3.28 ▲0.0535.69 ▲1.25

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_professionearchitetto_job
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for professione Architetto Job
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.141.89 ▲0.1544.09 ▲5.70
Dashboard /wp-admin2,203 ▲184.86 ▼0.0699.52 ▼3.6744.40 ▲4.38
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0636.91 ▼3.8233.42 ▼0.81
Add New Post /wp-admin/post-new.php1,543 ▲2118.50 ▼4.73633.33 ▲20.6758.82 ▲6.14
Media Library /wp-admin/upload.php1,391 ▲64.22 ▼0.02100.41 ▲3.2244.08 ▼3.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_professionearchitetto_job
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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 Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: job, professione architetto, lavoro, news

professione-architetto-job/professionearchitetto-job.php 85% from 13 tests

This is the main PHP file of "professione Architetto Job" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("professione-architetto-job.php" instead of "professionearchitetto-job.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin221 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12820167
PO File1141454

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected